package com.maket.jbxx.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.maket.jbxx.domain.vo.CpProductType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 产品管理对象 cp_product
 * 
 * @author ruoyi
 * @date 2024-07-04
 */
public class CpProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品编码 */
    private String cpCode;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String cpName;

    /** 产品品牌 */
    @Excel(name = "产品品牌")
    private String cptypeCode;

    /** 产品分类 */
    @Excel(name = "产品分类")
    private String cpTypecode;

    /** 产品型号 */
    @Excel(name = "产品型号")
    private String cpType;

    /** 单位 */
    @Excel(name = "单位")
    private String dwCode;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private String cpLxcode;

    /** 属性编码 */
    @Excel(name = "属性值")
    private String sxValue;


    /** 物料编码 */
    @Excel(name = "物料编码")
    private String wlCode;

    /** 属性编码 */
    @Excel(name = "属性编码")
    private String sxCode;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Long isUse;

    /** 是否删除 */
    private Long isDelete;

    /** 创建人 */
    private String cpCreate;

    /** 创建时间 */
    private Date cpCreatetime;

    /** 修改时间 */
    private Date cpUpdatetime;

    /** 单位名称 */
    private String dw_name;
    /** 品牌名称 */
    private String pp_name;
    /** 产品分类 */
    private String cpfl_name;
    /** 物料名称 */
    private String wl_name;


    /** 计量单位信息 */
    private List<JldwMeasurementUnit> jldwMeasurementUnitList;
    /** 产品品牌信息 */
    private List<CpppProductBrand> cpppProductBrandList;
    /** 产品分类信息 */
    private List<CpflProductClassification> cpflProductClassificationList;
    /** 物料档案信息 */
    private List<WldaMaterialFile> wldaMaterialFileList;
    /** 属性值信息 */
    private List<CpProductType> sxAttributeValueList;
    /** 属性值 */
    private List<CpAndSx> cpAndSxList;

    /** 属性编码*/
    private Long cpSxId;

    /** 属性值id */
    @Excel(name = "属性值id", readConverterExp = "$column.readConverterExp()")
    private Long sxZId;

    public void setCpCode(String cpCode) 
    {
        this.cpCode = cpCode;
    }

    public String getCpCode() 
    {
        return cpCode;
    }
    public void setCpName(String cpName) 
    {
        this.cpName = cpName;
    }

    public String getCpName() 
    {
        return cpName;
    }
    public void setCptypeCode(String cptypeCode) 
    {
        this.cptypeCode = cptypeCode;
    }

    public String getCptypeCode() 
    {
        return cptypeCode;
    }
    public void setCpTypecode(String cpTypecode) 
    {
        this.cpTypecode = cpTypecode;
    }

    public String getCpTypecode() 
    {
        return cpTypecode;
    }
    public void setCpType(String cpType) 
    {
        this.cpType = cpType;
    }

    public String getCpType() 
    {
        return cpType;
    }
    public void setDwCode(String dwCode) 
    {
        this.dwCode = dwCode;
    }

    public String getDwCode() 
    {
        return dwCode;
    }
    public void setCpLxcode(String cpLxcode) 
    {
        this.cpLxcode = cpLxcode;
    }

    public String getCpLxcode() 
    {
        return cpLxcode;
    }

    public String getSxValue() {
        return sxValue;
    }

    public void setSxValue(String sxValue) {
        this.sxValue = sxValue;
    }

    public String getSxCode() {
        return sxCode;
    }

    public void setSxCode(String sxCode) {
        this.sxCode = sxCode;
    }

    public void setIsUse(Long isUse)
    {
        this.isUse = isUse;
    }

    public List<JldwMeasurementUnit> getJldwMeasurementUnitList() {
        return jldwMeasurementUnitList;
    }

    public void setJldwMeasurementUnitList(List<JldwMeasurementUnit> jldwMeasurementUnitList) {
        this.jldwMeasurementUnitList = jldwMeasurementUnitList;
    }

    public Long getIsUse()
    {
        return isUse;
    }
    public void setIsDelete(Long isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete() 
    {
        return isDelete;
    }
    public void setCpCreate(String cpCreate) 
    {
        this.cpCreate = cpCreate;
    }

    public String getCpCreate() 
    {
        return cpCreate;
    }
    public void setCpCreatetime(Date cpCreatetime) 
    {
        this.cpCreatetime = cpCreatetime;
    }

    public Date getCpCreatetime() 
    {
        return cpCreatetime;
    }
    public void setCpUpdatetime(Date cpUpdatetime) 
    {
        this.cpUpdatetime = cpUpdatetime;
    }

    public Date getCpUpdatetime() 
    {
        return cpUpdatetime;
    }


    public String getWlCode() {
        return wlCode;
    }

    public void setWlCode(String wlCode) {
        this.wlCode = wlCode;
    }

    public List<CpppProductBrand> getCpppProductBrandList() {
        return cpppProductBrandList;
    }

    public void setCpppProductBrandList(List<CpppProductBrand> cpppProductBrandList) {
        this.cpppProductBrandList = cpppProductBrandList;
    }

    public List<CpflProductClassification> getCpflProductClassificationList() {
        return cpflProductClassificationList;
    }

    public void setCpflProductClassificationList(List<CpflProductClassification> cpflProductClassificationList) {
        this.cpflProductClassificationList = cpflProductClassificationList;
    }

    public List<WldaMaterialFile> getWldaMaterialFileList() {
        return wldaMaterialFileList;
    }

    public void setWldaMaterialFileList(List<WldaMaterialFile> wldaMaterialFileList) {
        this.wldaMaterialFileList = wldaMaterialFileList;
    }

    public String getDw_name() {
        return dw_name;
    }

    public void setDw_name(String dw_name) {
        this.dw_name = dw_name;
    }

    public String getPp_name() {
        return pp_name;
    }

    public void setPp_name(String pp_name) {
        this.pp_name = pp_name;
    }

    public String getCpfl_name() {
        return cpfl_name;
    }

    public void setCpfl_name(String cpfl_name) {
        this.cpfl_name = cpfl_name;
    }

    public String getWl_name() {
        return wl_name;
    }

    public void setWl_name(String wl_name) {
        this.wl_name = wl_name;
    }

    public List<CpProductType> getSxAttributeValueList() {
        return sxAttributeValueList;
    }

    public void setSxAttributeValueList(List<CpProductType> sxAttributeValueList) {
        this.sxAttributeValueList = sxAttributeValueList;
    }

    public List<CpAndSx> getCpAndSxList() {
        return cpAndSxList;
    }

    public void setCpAndSxList(List<CpAndSx> cpAndSxList) {
        this.cpAndSxList = cpAndSxList;
    }

    public Long getCpSxId() {
        return cpSxId;
    }

    public void setCpSxId(Long cpSxId) {
        this.cpSxId = cpSxId;
    }

    public Long getSxZId() {
        return sxZId;
    }

    public void setSxZId(Long sxZId) {
        this.sxZId = sxZId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cpCode", getCpCode())
            .append("cpName", getCpName())
            .append("cptypeCode", getCptypeCode())
            .append("cpTypecode", getCpTypecode())
            .append("cpType", getCpType())
            .append("dwCode", getDwCode())
            .append("cpLxcode", getCpLxcode())
            .append("sxValue", getSxValue())
            .append("isUse", getIsUse())
            .append("isDelete", getIsDelete())
            .append("cpCreate", getCpCreate())
            .append("cpCreatetime", getCpCreatetime())
            .append("cpUpdatetime", getCpUpdatetime())
            .append("JldwMeasurementUnitList", getJldwMeasurementUnitList())
            .append("CpflProductClassificationList", getCpflProductClassificationList())
            .append("CpppProductBrandList", getCpppProductBrandList())
            .append("WldaMaterialFileList", getWldaMaterialFileList())
            .append("wlCode", getWlCode())
            .append("DwName", getDw_name())
            .append("PpName", getPp_name())
            .append("WlName", getWl_name())
            .append("CpflName", getCpfl_name())
            .append("setSxAttributeValueList", getSxAttributeValueList())
            .append("sxCode", getSxCode())
            .append("cpAndSxList", getCpAndSxList())
            .append("CpSxId", getCpSxId())
            .append("SxZId", getSxZId())
            .toString();
    }
}
